package cn.coco.jf.fw.admin.model;

import java.util.ArrayList;
import java.util.List;

import cn.coco.jf.fw.admin.config.consts.SysConsts;

import com.jfinal.plugin.activerecord.Model;

public class JkUser extends Model<JkUser>{
    
    public static JkUser dao = new JkUser().use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    
    public JkUser newInstance(){
        return new JkUser().use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    }
    
    private List<String> menus = new ArrayList<String>();

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
 
    
    public String getUserCode() {
        return get("userCode");
        
    }
    public void setUserCode(String userCode) {
        set("userCode", userCode);
    }
    public String getUserName() {
    	return get("userName");
    }
    public void setUserName(String userName) {
    	 set("userName", userName);
    }
    public String getPasswdSalt() {
        return get("passwdSalt");
    }
    public void setPasswdSalt(String passwdSalt) {
        set("passwdSalt", passwdSalt);
    }
	public String getUserPasswd() {
		return get("userPasswd");
	}
	public void setUserPasswd(String userPasswd) {
		 set("userPasswd", userPasswd);
	}
	public int getRoleId() {
		return get("roleId");
	}
	public void setRoleId(int roleId) {
		 set("roleId", roleId);
	}
    public List<String> getMenus() {
        return this.menus;
    }
    public void setMenus(List<String> menus) {
        this.menus = menus;
    }
}
